using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class TaskSubtasksExtend
{
		public static ResponseTaskSubtasksDto ToResponseDto(this TaskSubtasks entity)
{			return new ResponseTaskSubtasksDto
			{
				createdAt = entity.TsCreatedAt,
				createdAtStr =Tools.TimeToString(entity.TsCreatedAt),
				status = entity.TsStatus,
				subtaskId = entity.TsSubtaskId,
				taskId = entity.TsTaskId,
				title = entity.TsTitle,
			};
		}
	}
}
